/**
 * 产品领用出库表 api 封装
 *
 * @Author:    zzw
 * @Date:      2024-10-09 15:08:50
 * @Copyright  jz
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const usageOutboundApi = {

  /**
   * 分页查询  @author  zzw
   */
  queryPage: (param) => {
    return postRequest('/usageOutbound/queryPage', param);
  },

  /**
   * 增加  @author  zzw
   */
  add: (param) => {
    return postRequest('/usageOutbound/add', param);
  },

  /**
   * 修改  @author  zzw
   */
  update: (param) => {
    return postRequest('/usageOutbound/update', param);
  },


  /**
   * 删除  @author  zzw
   */
  delete: (id) => {
    return getRequest(`/usageOutbound/delete/${id}`);
  },

  /**
   * 批量删除  @author  zzw
   */
  batchDelete: (idList) => {
    return postRequest('/usageOutbound/batchDelete', idList);
  },

  getGoodsqueryAll: () => {
    return postRequest('/goods/queryAll');
  },
  usageOutboundApprove: (id) => {
    return getRequest(`/usageOutbound/approve/${id}`);
  },
  //@GetMapping("/usageOutbound/approve/{id}")
  //@PostMapping("/goods/queryAll")

};
